package com.hc.common.utils;


/**
 * @Author: huangcheng
 * @CreateTime: 2023-12-18  09:30
 * @Description: 请求上下文信息
 * @Version: 1.0
 */
public class RequestHolder {
    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void set(Long arg) {
        threadLocal.set(arg);
    }

    public static Long get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
